
package com.cisite.common.validator;

class Validators {
	static final confirmPasswordValidator = { value, command ->
		if (command.password != value) {
			return 'command.confirmPassword.error.mismatch'
		}
	}

	static def requiresAtleastOne =  {val, obj->
		if(!val?.size()){
			return "default.requires.atleast.one"
		}
	}

}
